<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
onLaunch(() => {
  console.log("App Launch");
  const menu_info = uni.getStorageSync("menu_info");
  if (!menu_info) {
    //如果没有胶囊按钮信息，需要获取
    const res = uni.getMenuButtonBoundingClientRect();
    console.log("res::", res);
    //保存到本地
    uni.setStorageSync("menu_info", res);
  }
});
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});
</script>
<style></style>
